﻿@using System.Web.Optimization
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>@ViewBag.Title</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="@Styles.Url("~/content/css")" rel="stylesheet"/>
        <style>
            body { padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ }
        </style>
        <link href="@Styles.Url("~/content/css-responsive")" rel="stylesheet"/>
        @RenderSection("HeadControls", false)
		<meta name="description" content="CkSoftware.GroupMe.Sdk - GroupMe chat .NET software development kit (unofficial)." />
</head>
    <body>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="/">GroupMe .NET SDK</a>
                    <div class="nav-collapse collapse">
                        @using (var nav = Html.Bootstrap().Begin(new Nav().Style(NavType.Pills).SetLinksActiveByController()))
                        {
                            @nav.ActionLink("Home", "Index", "Home")
                            @nav.ActionLink("Bot Example", "Index", "Bot")
                            @nav.ActionLink("Client Auth Example", "Index", "ClientAuth")
                            @nav.ActionLink("Groups Example", "Index", "Groups")
                        }
                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="span3">
                    <div class="well">
                        @using (var nav = Html.Bootstrap().Begin(new Nav().Style(NavType.List).SetLinksActiveByControllerAndAction()))
                        {
                            var controllerName = ViewContext.RouteData.Values["controller"].ToString().ToLowerInvariant();
                            switch (controllerName)
                            {
                                case "bot":
                                    @nav.Header("GroupMe Bot Example")
                                    @nav.Divider()
                                    @nav.ActionLink("Test console", "Index", "Bot")
                                    @nav.ActionLink("Callback messages", "ListCallbackMessages", "Bot")
                                    @nav.ActionLink("List all bots", "IndexAllBots", "Bot")
                                    break;
                                case "clientauth":
                                    @nav.Header("Client Auth Example")
                                    @nav.Divider()
                                    @nav.ActionLink("Test console", "Index", "ClientAuth")
                                    @nav.ActionLink("Auth Callback", "AuthCallback", "ClientAuth")
                                    break;
                                    case "groups":
                                    @nav.Header("Groups Example")
                                    @nav.Divider()
                                    @nav.ActionLink("Configuration", "Index", "Groups")
                                    @nav.ActionLink("All groups", "List", "Groups")
                                    @nav.ActionLink("Former groups", "FormerList", "Groups")
                                    @nav.ActionLink("Create Group", "Create", "Groups")
                                    break;
                                default:
                                    @nav.Header("Please select a topic")
                                    break;
                            }
                        }
                    </div>
                </div>
                <div class="span9">
                    @RenderBody()   
                </div>
            </div>
            
            <hr>
            <footer>
                <p>&copy; cke @DateTime.Now.ToString("yyyy")</p>
            </footer> 


        </div>
        @Scripts.Render("~/js")
        @Scripts.Render("~/Scripts")
        @RenderSection("Scripts", required: false)
        
        <script>
            (function (i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                	(i[r].q = i[r].q || []).push(arguments);
	            }, i[r].l = 1 * new Date(); a = s.createElement(o),
                m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g;
	            m.parentNode.insertBefore(a, m);
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', 'UA-17394992-5', 'dotnetcorner.ch');
            ga('send', 'pageview');
        </script>
    </body>
</html>